home *** CD-ROM | disk | FTP | other *** search
- Path: castle.nando.net!news
- From: actuary@nando.net (Bill McCarthy)
- Newsgroups: comp.lang.c
- Subject: Re: argc/argv & switches
- Date: 9 Mar 1996 00:43:06 GMT
- Organization: Nando.net Public Access
- Message-ID: <4hqk6q$nu5@castle.nando.net>
- References: <4h2j8j$9gn@milo.freenet.vancouver.bc.ca> <danpop.825593142@rscernix> <TANMOY.96Mar8095931@qcd.lanl.gov>
- Reply-To: actuary@nando.net (Bill McCarthy)
- NNTP-Posting-Host: grail1912.nando.net
- X-Newsreader: IBM NewsReader/2 v1.2
-
- In <TANMOY.96Mar8095931@qcd.lanl.gov>,
- tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya) writes:
-
- >In article <4ho9dv$bcb@castle.nando.net>
- >actuary@nando.net (Bill McCarthy) writes:
-
- >BM: While we're on the standard, Dan, is the "missing period" contained on
- >BM: page 26 (6.1.3.1)?
- >BM:
- >BM: I've been stuck on this page because (1) the standard seems to define
- >BM: numbers such as "123" (i.e. a string of 1 or more digits) to be a double
- >BM: here and as an int in the following section (I peaked :-). There appears
- >BM: to be a need for a period at the end of the second line following
- >BM: "fractional-constant."
- >
- >123 is an integer constant, not a double.
-
- According to my copy of the standard, one representation of a
- floating-constant is: fractional-constant optional-stuff
-
- So a fractional-constant is a floating-constant.
-
- Now one of the two representations of a fractional-constant is
- simply a digit-sequence. You apparently disagree that this should
- be following by a period, this is the point of my comment. But:
-
- digit-sequence:
- digit
- digit-sequence digit
-
- So, 123 is a digit-sequence. A digit-sequence is a fractional-constant.
- A fractional-constant is a float-constant.
-
- Therefore, 123 is a float-constant :-) Yes, I know it is really an int,
- but without the period where I pointed out it should be, how can
- you conclude that it is not a float-constant?
-
- Regards,
-
- Bill McCarthy
- actuary@nando.net
- Wendell, NC USA
-
-